Repository navigation
feat(context): lock GitLab group + Bitbucket workspace (level 2) - #35
Merged
Merged
Conversation
Extends the per-CLI context lock so a repo pushed to the wrong GitLab
group or Bitbucket workspace is a mismatch, not a silent pass. Adds
[context.gitlab] {group,remote} + [context.bitbucket] {workspace,remote}
to ContextConfig + zod, FIELD_SPECS rows, parseGitlabRemote /
parseBitbucketRemote (SSH+HTTPS, GitLab subgroups), gatherLive parses the
origin remote per host, and suggestContextToml/hasLockableContext surface
them in the brownfield init offer. Same data-driven (tool,field) model.
|
✅ Docker image built successfully
|
…lab-bitbucket # Conflicts: # CHANGELOG.md
|
✅ Docker image built successfully
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Completes even git-host coverage: context-lock now verifies GitLab and Bitbucket too, not just GitHub.
What
ContextConfiggains[context.gitlab](group,remote) and[context.bitbucket](workspace,remote) — type + zod.kit context checkparses the liveoriginremote per host (parseGitlabRemote/parseBitbucketRemote, SSH + HTTPS, GitLab subgroups) and verifies it matches the declared values. A repo pushed to the wrong GitLab group / Bitbucket workspace is a mismatch, not a silent pass — the same cross-account guard GitHub already had.suggestContextToml+hasLockableContextsurface a detected GitLab/Bitbucket binding in the brownfieldkit initoffer.(tool, field)row inFIELD_SPECS— the lock stays data-driven and the comparison stays pure/unit-tested ("only the exact declared pair passes").Verify
npm run build && npm test→ build clean, 1313 tests, 0 fail (+4: gitlab/bitbucket remote parsing + group/workspace lock ok/mismatch/unknown).Now all three git hosts are even across kit: detection (analyze),
kit healthsensors (#34), and context-lock (this).🤖 Generated with Claude Code